@()(implicit request: JRequestHeader)

@main {

    <h1>Comet clock</h1>

    <h1 id="clock"></h1>

    <p>
        Clock events are pushed from the Server using a Comet connection.
    </p>

    <script @{CSPNonce.attr} src="@routes.Assets.at("javascripts/comet.js")"></script>

    <iframe id="comet" hidden src="@routes.JavaCometController.streamClock().unique()"></iframe>

}
